#include "LED.h"
#include "gpio.h"

#define ON  (1)
#define OFF (0)

void LED_Init(void)
{
	LED_IO_Init();
}

void LED_ON()
{
	LED0_CTRL(ON);
	LED1_CTRL(ON);
}

void LED_OFF()
{
	LED0_CTRL(OFF);
	LED1_CTRL(OFF);
}

void LED_Toggle()
{
	static unsigned int temp = 0;
	temp++;
	
	if(temp%2)
	{
		LED0_CTRL(OFF);
		LED1_CTRL(OFF);
	}
	else 
	{
		LED0_CTRL(ON);
		LED1_CTRL(ON);
	}
}
